package Test;

import java.util.HashMap;
import java.util.Iterator;
import java.util.Map;
import java.util.Set;
import java.util.regex.Matcher;
import java.util.regex.Pattern;

public class TestValue {
	
	public static void main(String[] args) {
		
		String str="supplierStrs = {\"supplyid\":\"17080715384100020028\",\"cstid\":\"17080715384100010028\",\"supplyno\":\"GYS1708070084\",\"principal\":\"\",\"linkman\":\"\",\"phone\":\"\",\"address\":\"\",\"supplytaxno\":\"\"};operatetype=0;";
		
		
		
		String [] strarr=str.split(";");
		
		String valuestr=strarr[0];
		String operatetype=strarr[1];
		
		Map valuemap=getKey(valuestr);
		Map operatetypeMap=getKey(operatetype);
		Set<String> set=valuemap.keySet();
		   Iterator it=set.iterator();
		   while(it.hasNext()){  
	             String key;     
	             String value;     
	             key=it.next().toString();     
	             System.out.println(key+"--");     
	        }  
		System.out.println(valuemap.get("supplierStrs1"));
		
		System.out.println(operatetypeMap.get("operatetype"));
		
		
		
	}
	
	public static  Map<String, Object> getKey(String str){
		Map<String, Object> map=new HashMap<String,Object>();
		String [] arrStr=str.split("=");
		
		map.put(arrStr[0].trim(),arrStr[1].trim());
		
		return map;
		
		
	}
}
